<?php

declare(strict_types=1);

namespace app\common\model\order;

use app\common\model\user\UserModel;
use Dengje\Pxy\BaseModel;

class OrderGoodsModel extends BaseModel
{
    protected $name = 'order_goods';

    public function user()
    {
        return $this->hasOne(UserModel::class, "id", "user_id")->field("id,name,avatar");
    }
}